public class LittleCar extends Car{
    static{
        System.out.println("读入小轿车系统……");
    }
    {
        System.out.println("小轿车启动……");
    }
    private String brand;
    private String color;
    public LittleCar(int turnrate, double radius, double usetime, int passanger, String brand, String color) {
        super.Car(turnrate, radius, usetime, passanger);
        this.brand =brand;
        this.color =color;
    }

    //setter&getter
    public void setBrand(String inputb) {
        brand = inputb;
    }
    public String getBrand() {
        return brand;
    }
    public void setColor(String inputc) {
        color = inputc;
    }
    public String getColor() {
        return color;
    }

    //小汽车功能描述
    public void getFuntion(){
        System.out.println("[功能] 小汽车可以运载乘客和运载少量旅客行李，是较为普遍的家庭出行方式");
    }

    //小汽车特征描述
    public void getValue() {
        //描述小汽车自我特征
        System.out.println();
        System.out.println("[品牌] " + this.getBrand());
        System.out.println("[颜色]" + this.getColor());
        super.getValue();
    }
    public void warnSafe(){
        System.out.println();
        System.out.println("道路千万条，安全第一条");
        System.out.println("行车不规范，亲人两行泪");
    }

}